home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / M-I80286.H < prev    next >
C/C++ Source or Header  |  1989-12-31  |  1KB  |  56 lines

  1. /************** Machine (and compiler) dependent definitions. **************
  2.  *
  3.  *    This is for the Intel 80286 processor.
  4.  */
  5.  
  6.  
  7.  
  8. /*      MACHINE TYPE    DEFINED TYPE        VALUE RANGE    */
  9.  
  10. typedef unsigned char    int8;        /*        0 ..     255 */
  11. typedef short        int16;        /*  -10,000 ..  10,000 */
  12. typedef long        int32;        /* -100,000 .. 100,000 */
  13. typedef unsigned long    uint32;        /*       0 ..  2^31-1 */
  14.  
  15. #define I286_BUG
  16.  
  17. /*
  18.  *     Define NO_VARARGS if the varargs feature is not available
  19.  *
  20.  *    Also define NO_VARARGS if the vprintf/vsprintf routines are not
  21.  *    available (however, this will only by safe on some machines, like
  22.  *    the VAX).
  23.  *    
  24.  */
  25.  
  26. /* #define NO_VARARGS */
  27.  
  28.  
  29.  
  30. #ifdef NETWORK_DATABASE
  31.  
  32. /*
  33.  *    Define NETWORK_BYTE_ORDER if the machine's int32's are
  34.  *    already in network byte order, i.e. m68k based.
  35.  */
  36.  
  37. /* #define NETWORK_BYTE_ORDER    /* THEY ARE NOT */
  38.  
  39. /*
  40.  * Include appropriate files or define macroes or functions (include them 
  41.  * in data.c) to convert longs and shorts to and from network byte order.
  42.  *
  43.  * Needs byte swapping here!
  44.  */
  45.  
  46. YOU LOSE -- HOW IS THIS DONE ON THE 286?
  47.  
  48. /*
  49.  * define something appropriate below
  50.  */
  51.  
  52. #define htonl(l)    ...    /* host long to network long */
  53. #define ntohl(l)    ...    /* network long to host long */
  54.  
  55. #endif    /* NETWORK DATABASE */
  56.